﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using UpYourLife.Services.Models;
using UpYourLife.Services.Google;

namespace UpYourLife.Services
{    
    [ServiceBehavior(InstanceContextMode= InstanceContextMode.PerCall)]
    public class UpYourLifeServices: IUpYourLifeServices
    {
        ServiceRepository repository;
        public UpYourLifeServices()
        {
           repository  = new ServiceRepository();                       
        }

        public Place GetPlace(Guid place_id)
        {
            return repository.GetPlace(place_id);
        }

        public List<Place> GetPlaces()
        {
            throw new NotImplementedException();
        }

        public List<Place> GetPlaces(string type)
        {
            throw new NotImplementedException();
        }

        public List<Place> GetPlaces(string[] types)
        {
            return repository.GetPlaces(types);
        }

        public Friend GetFriend(Guid friend_id)
        {
            return repository.GetFriend(friend_id);
        }

        public Friend GetFriend(string friend_name)
        {
            throw new NotImplementedException();
        }

        public List<Friend> GetFriends(Guid group_id)
        {
            throw new NotImplementedException();
        }


        public GoogleLocalResponseData GetGoogleLocalResponseData(string keyword)
        {
            return repository.GetGoogleLocalResponseData(keyword);
        }


        public List<Friend> GetFriends()
        {
            return repository.GetFriends();
        }


        public void CreateMessage(UpMessage upMessage)
        {
            repository.CreateMessage(upMessage);
        }
    }
}
